﻿using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;

namespace CMS.Business
{
    public class BussinessInstaller : IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Register(Component
                                   .For<IKeyValueList>()
                                   .ImplementedBy<KeyValueList>()
                                   .LifeStyle.Singleton);

            container.Register(Component
                                   .For<IUserInformationBussiness>()
                                   .ImplementedBy<UserInformationBussiness>()
                                   .LifeStyle.Singleton);

            container.Register(Component
                                  .For<IPageBussiness>()
                                  .ImplementedBy<PageBussiness>()
                                  .LifeStyle.Singleton);
        }
    }
}